package com.ace.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @className: HelloController
 * @package: com.ace.controller
 * @description: TODO 类描述
 * @author: cd
 * @date: 2021-07-14 8:55
 */
@Controller
public class HelloController {

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String test(Model model){
        System.out.println("进入test方法");
        model.addAttribute("msg","test meth has been called");
        return "hello";
    }

}
